<?php
require 'include/global.php';              
require_once 'include/train_db.php';
$smarty->compile_check = true;
$sql = "SELECT * FROM pa_webinar WHERE wb_id = '".$_GET[id]."' ";
$s   = $DB->fetch_one_array($sql);
   $s[fromhour] = @substr($s[wb_starttime ],0,2);$s[frommin] = @substr($s[wb_starttime],2,2);$s[fromam_pm] = @substr($s[wb_starttime],4,2);
   $s[tohour] = @substr($s[wb_endtime],0,2);$s[tomin] = @substr($s[wb_endtime],2,2);$s[toam_pm] = @substr($s[wb_endtime],4,2);
   $s[page1] = (@ereg('1',$s['wb_selectpage']))?1:0;
   $s[page2] = (@ereg('2',$s['wb_selectpage']))?1:0;
   $s[page3] = (@ereg('3',$s['wb_selectpage']))?1:0;
   $s[page4] = (@ereg('4',$s['wb_selectpage']))?1:0;
   $s[wb_color]     =  $webinar_button_colors[$s[wb_color]];

$smarty->assign("s",$s);

$smarty->display('webinardetail.tpl');

?>
